package cn.remex.contrib;

import cn.remex.RemexConstants.OperateType;
import cn.remex.core.RemexEvent;
import cn.remex.db.model.SysRole;

/**
 * Created by dmm on 2017/6/20.
 */
public class SysRoleEvent extends RemexEvent{

    private OperateType operateType;
    private SysRole sysRole;

    public SysRoleEvent(String source, OperateType operateType, SysRole sysRole) {
        super(source, sysRole, operateType);
        this.operateType = operateType;
        this.sysRole = sysRole;
    }

    public OperateType getOperateType() {
        return operateType;
    }

    public void setOperateType(OperateType operateType) {
        this.operateType = operateType;
    }

    public SysRole getSysRole() {
        return sysRole;
    }

    public void setSysRole(SysRole sysRole) {
        this.sysRole = sysRole;
    }
}
